package com.sunyard.pcc.core.manager;

import com.sunyard.michiru.common.entity.PageResult;
import com.sunyard.pcc.dal.model.SysRoleMenuDO;
import com.sunyard.pcc.dal.query.SysRoleMenuQuery;

import java.util.List;

/**
 * Manager for SysRoleMenu.
 */
public interface SysRoleMenuManager {

    /**
     * query count by query condition.
     */
    int countByQuery(SysRoleMenuQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SysRoleMenuQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SysRoleMenuDO record);

    /**
     * insert selective.
     */
    long insertSelective(SysRoleMenuDO record);

    /**
     * select by query condition.
     */
    List<SysRoleMenuDO> selectByQuery(SysRoleMenuQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<SysRoleMenuDO> selectByQueryWithPage(SysRoleMenuQuery query);

    /**
     * select by primary key.
     */
    SysRoleMenuDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( SysRoleMenuDO record,  SysRoleMenuQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(SysRoleMenuDO record, SysRoleMenuQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SysRoleMenuDO record);

}